package com.itheima.filter1;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;


public class LeftFilter implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("杨逍抵抗 六大门派");

        System.out.println("如果抵抗失败 就会放行");
    //放行对象 FilterChain ---过滤器链
        System.out.println("杨逍顶不住了。。失败了");
        chain.doFilter(req, resp);
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
